home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / steppenw.swf / scripts / frame_108 / PlaceObject2_67_224 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-11-12  |  2KB  |  101 lines

  1. onClipEvent(enterFrame){
  2.    var bytesloaded = _root.getBytesLoaded();
  3.    var percentage = bytesloaded / totalbytes;
  4.    _root.LoadingBar.Loaded.Percent.Loaded = int(percentage * 100);
  5.    if(20 < _root.LoadingBar.Loaded.Percent.Loaded and Passe20 != true)
  6.    {
  7.       Passe20 = true;
  8.       tellTarget("_root.LoadingBar")
  9.       {
  10.          gotoAndStop("20");
  11.          play();
  12.       }
  13.    }
  14.    if(30 < _root.LoadingBar.Loaded.Percent.Loaded and Passe30 != true)
  15.    {
  16.       Passe30 = true;
  17.       tellTarget("_root.LoadingBar")
  18.       {
  19.          gotoAndStop("30");
  20.          play();
  21.       }
  22.    }
  23.    if(40 < _root.LoadingBar.Loaded.Percent.Loaded and Passe40 != true)
  24.    {
  25.       Passe40 = true;
  26.       tellTarget("_root.LoadingBar")
  27.       {
  28.          gotoAndStop("40");
  29.          play();
  30.       }
  31.    }
  32.    if(50 < _root.LoadingBar.Loaded.Percent.Loaded and Passe50 != true)
  33.    {
  34.       Passe50 = true;
  35.       tellTarget("_root.LoadingBar")
  36.       {
  37.          gotoAndStop("50");
  38.          play();
  39.       }
  40.    }
  41.    if(60 < _root.LoadingBar.Loaded.Percent.Loaded and Passe60 != true)
  42.    {
  43.       Passe60 = true;
  44.       tellTarget("_root.LoadingBar")
  45.       {
  46.          gotoAndStop("60");
  47.          play();
  48.       }
  49.    }
  50.    if(70 < _root.LoadingBar.Loaded.Percent.Loaded and Passe70 != true)
  51.    {
  52.       Passe70 = true;
  53.       tellTarget("_root.LoadingBar")
  54.       {
  55.          gotoAndStop("70");
  56.          play();
  57.       }
  58.    }
  59.    if(80 < _root.LoadingBar.Loaded.Percent.Loaded and Passe80 != true)
  60.    {
  61.       Passe80 = true;
  62.       tellTarget("_root.LoadingBar")
  63.       {
  64.          gotoAndStop("80");
  65.          play();
  66.       }
  67.    }
  68.    if(90 < _root.LoadingBar.Loaded.Percent.Loaded and Passe90 != true)
  69.    {
  70.       Passe90 = true;
  71.       tellTarget("_root.LoadingBar")
  72.       {
  73.          gotoAndStop("90");
  74.          play();
  75.       }
  76.    }
  77.    if(99 < _root.LoadingBar.Loaded.Percent.Loaded and Passe100 != true)
  78.    {
  79.       Passe100 = true;
  80.       tellTarget("_root.LoadingBar")
  81.       {
  82.          gotoAndStop("100");
  83.          play();
  84.       }
  85.    }
  86.    ifFrameLoaded(535)
  87.    {
  88.       if(eval("/:Instru") != true)
  89.       {
  90.          tellTarget("_root.InstructionButton")
  91.          {
  92.             gotoAndStop(2);
  93.          }
  94.       }
  95.    }
  96.    if(100 < _root.LoadingBar.Loaded.Percent.Loaded)
  97.    {
  98.       _root.LoadingBar.Loaded.Percent.Loaded = 100;
  99.    }
  100. }
  101.